import React, { useEffect, useState } from 'react'
import { Text, View, Button, TouchableOpacity } from'react-native'
import { useNavigation } from '@react-navigation/native'


const BookMain = () => {
    const navigation = useNavigation();
    return (
        //子路由内页面
        <View 
            style = {{ flex: 1, justifyContent: 'center', alignItems: 'center' }}
        >
            <TouchableOpacity onPress = {() => {
                navigation.navigate('BookContent')
            }}>
                <Text>点击跳转</Text>
            </TouchableOpacity>
            <Text style = {{ fontSize: 50 }}>bookmain</Text>
        </View>
    )
}

export default BookMain
